package com.ecut.property_project.service.bunk;

import com.ecut.property_project.mapper.bunk.BunkPurposeMapper;
import com.ecut.property_project.model.bunk.BunkPurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BunkPurposeService{

    @Resource
    private BunkPurposeMapper bunkPurposeMapper;

    
    public int deleteByPrimaryKey(Integer purposeId) {
        return bunkPurposeMapper.deleteByPrimaryKey(purposeId);
    }

    
    public int insert(BunkPurpose record) {
        return bunkPurposeMapper.insert(record);
    }

    
    public int insertSelective(BunkPurpose record) {
        return bunkPurposeMapper.insertSelective(record);
    }

    public List<BunkPurpose> selectAll(){ return bunkPurposeMapper.selectAll(); }

    public List<BunkPurpose> selectByPage(Integer page, Integer pageSize){return bunkPurposeMapper.selectByPage(page,pageSize);}

    public BunkPurpose selectByPrimaryKey(Integer purposeId) {
        return bunkPurposeMapper.selectByPrimaryKey(purposeId);
    }
    public List<BunkPurpose> selectByHeadId(String headId){
        return bunkPurposeMapper.selectByHeadId(headId);
    }
    
    public int updateByPrimaryKeySelective(BunkPurpose record) {
        return bunkPurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BunkPurpose record) {
        return bunkPurposeMapper.updateByPrimaryKey(record);
    }

}
